<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>上传图片</title>
    <link href="css/bootstrap.min.css" rel="stylesheet">
</head>
<style>
    .modal-erro{
        font-size: 12px;
        color: #ff0057;
    }
    .img-box{
        max-height: 220px;
        overflow-y: auto;
    }
    .imgList{
    }
    .imgList .imgBox{
        width: 100px;
        height: 100px;
        line-height: 100px;
        vertical-align: middle;
        text-align: center;
        border-radius: 4px;
        overflow: hidden;
        border: 1px solid #f9f9f9;
        float: left;
        margin-right: 10px;
        margin-bottom: 10px;
        position: relative;
    }
    .imgList .imgBox img{
        max-width: 100%;
        max-height: 100%;
        margin-top: -5px;
    }
    .imgList .imgBox .delImg {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        text-align: center;
        color: #fff;
        font-size: 50px;
        padding-top: 7px;
        cursor: pointer;
    }
    .imgList .imgBox:hover .delImg{
        display: block;
    }
    .add-img{
        width: 100px;
        height: 100px;
        line-height: 100px;
        background: #f9f9f9;
        color: #858585;
        border: 1px dashed #ccc;
        border-radius: 4px;
        text-align: center;
        cursor: pointer;
    }
    .add-img input{
        display: none;
    }
</style>
<body>
<button id="begin">上传图片</button>
<script src="js/jquery-2.1.4.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/public.js"></script>
<script type="text/javascript">
//    $("#model").modal('toggle');
uploadimg({
    id : "begin",
    success : function(result){
        console.log(result)
    },
    isFinish : function(){

    },
	error:function(e){
		debugger;
	}
});
</script>
</body>
</html>